package com.mvc.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.mvc.annotation.Autowire;
import com.mvc.annotation.MvcController;
import com.mvc.annotation.RequestMapping;
import com.mvc.annotation.RequestParam;
import com.mvc.service.LogicService;

/**
 * mvc组件之控制器
 * 
 * @author ZGame
 *
 */
@MvcController
public class LogicController {
	@Autowire
	private LogicService logicService;

	@RequestMapping
	public String query(@RequestParam(value = "userId") String uid, HttpServletRequest request,
			HttpServletResponse response) {

		return logicService.query() + " userId:" + uid;
	}
}
